package com.example.demo.tlwbus;

import java.util.ArrayList;
import java.util.List;

/**
 * Application constants.
 */
public final class Constants {


    public static final String API_VERSION_URI = "/v1/";

    public static final String USER_NOT_FOUND_MSG = "用户不存在";
    public static final String RULE_INTERFLOW_CONTACTS = "互通联系人";//告警模板
    public static final String RULE_INTERFLOW_DATA = "数据互通";//短报文模板
    public static final String MSG_NOT_BDCARD = "缺少北斗卡号,消息:{}";


    public static final String CARD_NOT_DEVICE_CARRIER = "卡号：{},未绑定设备，或者载体" ;
    public static final String SAVE_MSG_FAIL = "保存短失败失败:{}";
    public static final String DEVICE_USER_NOT_NODE = "创建设备的用户缺失机构信息:{}" ;
    public static final String MSG_NOT_HEAD = "报文缺少协议头:{}";
    public static final String CONTACT_NOT_PARAM = "查询联系人参数缺失: cardNo:{},ruleTemplate:{}";
    public static final String CARD_NOT_CARRIER = "卡号：{},未绑定载体";
    public static final String DEVICE_CARD_NOT_HEAD = "卡号绑定的设备协议缺少协议头:{}";
    public static final String DTO_NOT_PARAM = "对象查询缺少参数 column:{},value:{}";
    public static final String CARRIER_STATE_DICTIONARY = "carrierStateList";//载体状态字典
    public static final String CARRIER_INSTANCE_ID = "carrierInstanceId";//载体状态字典
    public static final String LIST = "list";
    public static final String PAGE = "page";
    public static final String LATITUDE = "latitude";
    public static final String LONGITUDE = "longitude";
    public static final Integer MAX_SIZE = 2147483647;//这个最大数量不能改 2147483647
    public static final String IS_DISABLE = "is_disable";
    public static final Long CARRIER_SIZE = 100l;
    public static final String CARRIER_STATUS = "status";
    public static final String KEYWORD = ".keyword";
    public static final String[] CARRIER_MIN_INCLUDES = new String[]{"latitude", "longitude", "status", "name", "lngDirection", "latDirection", "direction"};
    public static final List<String> CARRIER_TYPE_MIN_INCLUDE = new ArrayList<String>() {{
        add("color");
        add("icoState");
    }};
    public static final String CACHE_BASIC_MANAGE_CARRIER_LIST_v2 = "cache-basic-manage-carrier_list_v2";
    public static final String CACHE_BASIC_MANAGE_CARRIER_LIST_v4 = "cache-basic-manage-carrier_list_v4";
    public static final String CACHE_BASIC_MANAGE_TRAVEL_LIST_v2 = "cache-basic-manage-tarvel-list-v2";
    public static final String CACHE_BASIC_MANAGE_GIS_MONITORPAGE = "cache-basic-manage-gis-monitorpage";
    public static final String CACHE_BASIC_MANAGE_GIS_CARRIERPAGE = "cache-basic-manage-gis-carrierpage";
    public static final String LOCALTION_MIN = "z";//坐标简写（经度，纬度）
    public static final String LOCALTION_DIRECTION = "f";//方向简写 （经度方向，纬度方向，对地方向）
    public static final String ID_MIN = "d"; //id
    public static final String STATUS_MIN = "t"; //状态
    public static final String API_COUNT = "apiCount";
    public static final String SEND_API_COUNT = "sendApiCount";
    public static final String NODE_TOP = "NODE_TOP"; //顶级机构
    public static final String NO_DATA_INTERFLOW_OR_CONCANTS = "无数据互通权限或者联系人，不发短信:{}";
    public static final String CARRIER_NAME = "name";
    public static final String CARRIER_NAME_MIN = "n";
    public static final String[] CARRIER_INCLUDE_NAME_ID = new String[]{"name"};
    public static final String ID = "id";
    public static final String TEMPLATE_ID = "template_id";
    public static final String STATE = "state";
    public static final Integer YES = 1;
    public static final Integer NO = 0;


    public static final String LNG = "lng";//经度
    public static final String LAT = "lat";//经度

    public static final String GMT_CREATE = "gmtCreate";
    public static final String TIME = "time";

    public static final String REDIS_SAVE_CARRIER_ID = "redis-save-carrier-id";
    public static final String CARRIER_INSTANCE_ID_SQL = "carrier_instance_id";
    public static final String CATEGORY = "category";//类别
    public static final String SIM1LIST = "sim1List";
    public static final String SIM2LIST = "sim2List";
    public static final String NOTNULL = "notnull";
    public static final String CACHE_BASIC_MANAGE_OPEN_TRAVELLIST = "cache-basic-manage-open-travellist";
    public static final String HEADER = "header";
    public static final String CARRIER_MAP = "carrierMap";
    public static final String CARRIER_SORT = "sort";//载体排序
    public static final String SELECTOR_ERROR = "selector关闭异常:{}";
    public static String lngDirection = "lngDirection"; //经度方向

    public static String latDirection = "latDirection"; //纬度方向
    public static String direction = "direction"; //对地航向
    public static final Object ISDISABLE = "is_disable";
    public static final Object ISDEL = "is_del";
}
